package com.decoder;

import feign.Response;
import feign.Util;
import feign.codec.DecodeException;
import feign.codec.StringDecoder;
import org.springframework.beans.factory.ObjectFactory;
import org.springframework.boot.autoconfigure.http.HttpMessageConverters;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.Map;

import static java.lang.String.format;

/**
 * @author 惊云
 * @date 2024/1/13 15:42
 */
public class TraceDecoder extends StringDecoder {

//    TraceDecoder(ObjectFactory<HttpMessageConverters> messageConverters){
//        super(messageConverters);
//    }

    @Override
    public Object decode(Response response, Type type) throws IOException {
        Map<String, Collection<String>> headers = response.headers();
        return super.decode(response,type);
    }

}
